package com.longkey.workflow.client.event
{
	import com.longkey.workflow.client.property.IPropEditableElement;
	
	import flash.events.Event;
	
	public class PropertyEvent extends Event
	{
		private var _elementId:Object;
		private var _elementType:int;
		private var _owner:IPropEditableElement;
		
		public function PropertyEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
		}
		
		public function set elementId(eleId:Object):void{
			this._elementId = eleId;
		}
		
		public function get elementId():Object{
			return this._elementId;
		}
		
		public function set elementType(eleType:int):void{
			this._elementType = eleType;
		}
		
		public function get elementType():int{
			return this._elementType;
		}
		
		public function set owner(owner:IPropEditableElement):void{
			this._owner = owner;
		}
		
		public function get owner():IPropEditableElement{
			return this._owner;
		}
		
		override public function clone():Event
		{
			var e:PropertyEvent = new PropertyEvent(this.type, this.bubbles, this.cancelable);
			e.elementId = this.elementId;
			e.elementType = this.elementType;
			e.owner = this.owner;
			return e;
		}
		
		
	}
}